const App = getApp()

let pageNo = 1;

Page({
  data: {
    
    orderList: [{
        id: 1,
        station: {
          name: '东和公司'
        },
        status: 'WAIT_PAY',
        cate: [
           {
             food:{name: '氧气'},
            address:'内蒙古科技大学',
              amount: 2
          },
           {
             food: { name: '氮气' },
             address: '包头师范学院',
            amount: 1
          },  
         
        ],
 
    }, {
        id: 1,
        station: {
          name: '东和公司'
        },
        status: 'WAIT_PAY',
        cate: [
          {
            food: { name: '氧气' },
            address: '内蒙古科技大学',
            amount: 2
          },
          {
            food: { name: '氮气' },
            address: '包头师范学院',
            amount: 1
          },

        ],
      },{
        id: 1,
        station: {
          name: '东和公司'
        },
        status: 'WAIT_PAY',
        cate: [
           {
             food:{name: '氧气'},
            address:'内蒙古科技大学',
              amount: 2
          },
           {
             food: { name: '氮气' },
             address: '包头师范学院',
            amount: 1
          },  
         
        ],
      }, {
        id: 1,
        station: {
          name: '东和公司'
        },
        status: 'WAIT_PAY',
        cate: [
          {
            food: { name: '氧气' },
            address: '内蒙古科技大学',
            amount: 2
          },
          {
            food: { name: '氮气' },
            address: '包头师范学院',
            amount: 1
          },

        ],
      }


    ],
    indicatorDots: true,
    autoplay: true,
    interval: 5000,
    duration: 1000,

    

    pageLoad: false,
    orderStatus: {
      WAIT_PAY: '已完成',
      WAIT_TAKE: '取货中',
      MAKING: '已取消',
     
    },
  },
  delOrder:function(){
    console.log('nihao')
    wx.showModal({
      title: '提示',
      content: '请确认是否删除订单信息',
      success: function (res) {
        if (res.confirm) {
          wx.showToast({
            title: '已删除订单',
          })
        } else {    
        }
      }
    })
  }






})